using System;
using System.Collections.Generic;
using System.Text;

using SD.LLBLGen.Pro.ORMSupportClasses;
using DatabaseAdapter;
using DatabaseGeneric;
using DatabaseGeneric.FactoryClasses;
using DatabaseGeneric.EntityClasses;
using DatabaseGeneric.RelationClasses;
using DatabaseGeneric.HelperClasses;

namespace Interfaces
{
    public interface ISanPhamBo
    {
        EntityCollection<SanPhamBoEntity> FetchCollection();
        EntityCollection<SanPhamBoEntity> FetchCollection(ChungLoaiSanPhamEntity currentEntityChungLoaiSanPham);
        EntityCollection<SanPhamBoEntity> FetchCollection(string criteria, int option);
        SanPhamBoEntity FetchEntity(SanPhamBoEntity currentEntitySanPhamBo);
        int SaveCollection(EntityCollection<SanPhamBoEntity> currentCollectionSanPhamBo);
        bool SaveEntity(SanPhamBoEntity currentEntitySanPhamBo);
        int DeleteCollection(EntityCollection<SanPhamBoEntity> currentCollectionSanPhamBo);
        bool DeleteEntity(SanPhamBoEntity currentEntitySanPhamBo);
        System.Data.DataTable Report(ChungLoaiSanPhamEntity currentEntityChungLoaiSanPham);
    }
}
